Skip to content

Fix dimension mismatches in SVD pullback due to rank_atol#357

Closed
pbrehmer wants to merge 3 commits intomasterfrom
pb-trunc-rank-tol
Closed

Fix dimension mismatches in SVD pullback due to rank_atol#357
pbrehmer wants to merge 3 commits intomasterfrom
pb-trunc-rank-tol

Conversation

@pbrehmer
Copy link
Copy Markdown
Collaborator

As described in #351, there was the possibility for a DimensionMismatch error due to the non-zero default rank_atol in MatrixAlgebraKit's SVD pullbacks. Here I set rank_atol=0 explicitly for FixedSVD and IterSVD pullbacks, so that error shouldn't happen again.

I'm not quite sure how to test this, so if anybody has an idea, let me know.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/utility/eigh.jl 84.00% <100.00%> (ø)
src/utility/qr.jl 93.93% <100.00%> (ø)
src/utility/svd.jl 88.55% <100.00%> (+0.28%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos
Copy link
Copy Markdown
Member

lkdvos commented Apr 23, 2026

Will close this since it should be fixed by QuantumKitHub/MatrixAlgebraKit.jl#208

@lkdvos lkdvos closed this Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants